from pydantic import BaseModel, Field


class CreateOrderRequest(BaseModel):

    openId: str = Field(..., description="用户openid")
    productNum: int = Field(..., description="商品数量")
    productId: str = Field(..., description="商品ID")
    productName: str = Field(..., description="商品名称")
    productPrice: int = Field(..., description="商品价格")